home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / mousewheel / freewheel / wheelmouse.h < prev   
C/C++ Source or Header  |  2000-03-08  |  984b  |  37 lines

  1.  
  2. #include <intuition/intuition.h>
  3.  
  4. enum WindowModes {OverWindow,ActiveWindow};
  5. enum ButtonModes {Ignore,Shift,ShiftClick,DepthArrange,ShiftDepth,CycleScreens};
  6.  
  7. struct WheelMouseContext
  8. {
  9.   void (*Dispose)(struct WheelMouseContext *wm);
  10.   BOOL (*Handle)(struct WheelMouseContext *wm,unsigned long signals);
  11.   int ScrollX,ScrollY;
  12.   int ButtonState;
  13.   enum WindowModes WindowMode;
  14.   enum ButtonModes MMBMode;
  15.   enum ButtonModes FourthButtonMode;
  16.   char **WindowModeNames;
  17.   char **MMBModeNames;
  18.   char **FourthButtonModeNames;
  19.   int MouseSpeedX;
  20.   int MouseSpeedY;
  21.   BOOL ClickToFront;
  22.   BOOL ClickToBack;
  23.   struct Task *MainTask;
  24.   unsigned long Signals;
  25.   int SigBit;
  26.   struct MsgPort *ReplyPort;
  27.   struct Window *Window;
  28.   struct Gadget *Gadget;
  29.   struct ExtIntuiMessage Msg1;
  30.   unsigned long pad11,pad12,pad13,pad14; /* struct might be extended further! */
  31.   struct ExtIntuiMessage Msg2;
  32.   unsigned long pad21,pad22,pad23,pad24;
  33. };
  34.  
  35. struct WheelMouseContext *WheelMouse_Create();
  36.  
  37.